package com.example.victory.swagger.model;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;

/**
 * 客户全景-资产-资产趋势
 */
@ApiModel(description = "客户全景-资产-资产趋势")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class AssetTendency   {
  @JsonProperty("day")
  @Valid
  private List<KeyValueDetail> day = null;

  @JsonProperty("month")
  @Valid
  private List<KeyValueDetail> month = null;

  @JsonProperty("year")
  @Valid
  private List<KeyValueDetail> year = null;

  public AssetTendency day(List<KeyValueDetail> day) {
    this.day = day;
    return this;
  }

  public AssetTendency addDayItem(KeyValueDetail dayItem) {
    if (this.day == null) {
      this.day = new ArrayList<KeyValueDetail>();
    }
    this.day.add(dayItem);
    return this;
  }

  /**
   * 日
   * @return day
  **/
  @ApiModelProperty(value = "日")

  @Valid

  public List<KeyValueDetail> getDay() {
    return day;
  }

  public void setDay(List<KeyValueDetail> day) {
    this.day = day;
  }

  public AssetTendency month(List<KeyValueDetail> month) {
    this.month = month;
    return this;
  }

  public AssetTendency addMonthItem(KeyValueDetail monthItem) {
    if (this.month == null) {
      this.month = new ArrayList<KeyValueDetail>();
    }
    this.month.add(monthItem);
    return this;
  }

  /**
   * 月
   * @return month
  **/
  @ApiModelProperty(value = "月")

  @Valid

  public List<KeyValueDetail> getMonth() {
    return month;
  }

  public void setMonth(List<KeyValueDetail> month) {
    this.month = month;
  }

  public AssetTendency year(List<KeyValueDetail> year) {
    this.year = year;
    return this;
  }

  public AssetTendency addYearItem(KeyValueDetail yearItem) {
    if (this.year == null) {
      this.year = new ArrayList<KeyValueDetail>();
    }
    this.year.add(yearItem);
    return this;
  }

  /**
   * 年
   * @return year
  **/
  @ApiModelProperty(value = "年")

  @Valid

  public List<KeyValueDetail> getYear() {
    return year;
  }

  public void setYear(List<KeyValueDetail> year) {
    this.year = year;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AssetTendency assetTendency = (AssetTendency) o;
    return Objects.equals(this.day, assetTendency.day) &&
        Objects.equals(this.month, assetTendency.month) &&
        Objects.equals(this.year, assetTendency.year);
  }

  @Override
  public int hashCode() {
    return Objects.hash(day, month, year);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AssetTendency {\n");
    
    sb.append("    day: ").append(toIndentedString(day)).append("\n");
    sb.append("    month: ").append(toIndentedString(month)).append("\n");
    sb.append("    year: ").append(toIndentedString(year)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

